import socket
import os

server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_socket.bind(('', 8080))
server_socket.listen(1)

while True:
    client_socket, client_address = server_socket.accept()
    load_avg = os.getloadavg()
    client_socket.sendall(str(load_avg).encode())
    client_socket.close()